// AdaBClassifier.h: interface for the CAdaBClassifier class.
//
//////////////////////////////////////////////////////////////////////

#ifndef ADAB_CLASSIFIER_H
#define ADAB_CLASSIFIER_H

#pragma once

#include "AClassifier.h"

class CAdaBClassifier : public CAClassifier  
{
public:
	CAdaBClassifier();
	virtual ~CAdaBClassifier();

	void	Clear();
	float	Classify(CASample *pSample, const char flag);
	bool	LoadFromFile(const char *strFileName);
	void	LoadFromFile(FILE *fp);
	bool	SaveToFile(const char *strFileName);
	void	SaveToFile(FILE *fp);
	void	Train(const char *strHFileName, CVPClassifier vpClassifiers, int nT, float fPPos=0.5);

private:
	CVPClassifier	m_vpClassifiers;
	vfloat			m_vfAlpha;
	float			m_fSumAlpha;
};

#endif 